package com.tmeone.erpone.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName t_move_warehouse
 */
@TableName(value ="t_move_warehouse")
@Data
public class TMoveWarehouse implements Serializable {
    /**
     *
     */
    @TableId
    private String id;

    /**
     *
     */
    private String mvNo;

    /**
     *
     */
    private String mvOut;

    /**
     *
     */
    private String mvIn;

    /**
     *
     */
    private String mvGoods;

    /**
     *
     */
    private Integer mvNumber;

    /**
     *
     */
    private String mvMark;

    /**
     *
     */
    private String mvPerson;

    /**
     *
     */
    private String mvTel;

    /**
     *
     */
    private Date mvTime;

    /**
     *
     */
    private String companyId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TMoveWarehouse other = (TMoveWarehouse) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getMvNo() == null ? other.getMvNo() == null : this.getMvNo().equals(other.getMvNo()))
                && (this.getMvOut() == null ? other.getMvOut() == null : this.getMvOut().equals(other.getMvOut()))
                && (this.getMvIn() == null ? other.getMvIn() == null : this.getMvIn().equals(other.getMvIn()))
                && (this.getMvGoods() == null ? other.getMvGoods() == null : this.getMvGoods().equals(other.getMvGoods()))
                && (this.getMvNumber() == null ? other.getMvNumber() == null : this.getMvNumber().equals(other.getMvNumber()))
                && (this.getMvMark() == null ? other.getMvMark() == null : this.getMvMark().equals(other.getMvMark()))
                && (this.getMvPerson() == null ? other.getMvPerson() == null : this.getMvPerson().equals(other.getMvPerson()))
                && (this.getMvTel() == null ? other.getMvTel() == null : this.getMvTel().equals(other.getMvTel()))
                && (this.getMvTime() == null ? other.getMvTime() == null : this.getMvTime().equals(other.getMvTime()))
                && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMvNo() == null) ? 0 : getMvNo().hashCode());
        result = prime * result + ((getMvOut() == null) ? 0 : getMvOut().hashCode());
        result = prime * result + ((getMvIn() == null) ? 0 : getMvIn().hashCode());
        result = prime * result + ((getMvGoods() == null) ? 0 : getMvGoods().hashCode());
        result = prime * result + ((getMvNumber() == null) ? 0 : getMvNumber().hashCode());
        result = prime * result + ((getMvMark() == null) ? 0 : getMvMark().hashCode());
        result = prime * result + ((getMvPerson() == null) ? 0 : getMvPerson().hashCode());
        result = prime * result + ((getMvTel() == null) ? 0 : getMvTel().hashCode());
        result = prime * result + ((getMvTime() == null) ? 0 : getMvTime().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mvNo=").append(mvNo);
        sb.append(", mvOut=").append(mvOut);
        sb.append(", mvIn=").append(mvIn);
        sb.append(", mvGoods=").append(mvGoods);
        sb.append(", mvNumber=").append(mvNumber);
        sb.append(", mvMark=").append(mvMark);
        sb.append(", mvPerson=").append(mvPerson);
        sb.append(", mvTel=").append(mvTel);
        sb.append(", mvTime=").append(mvTime);
        sb.append(", companyId=").append(companyId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}